import {
  Column,
  Entity,
  JoinTable,
  OneToMany,
  PrimaryGeneratedColumn,
} from 'typeorm'
import { User } from './User'

@Entity()
export class UserGroup {
  @PrimaryGeneratedColumn()
  id: number

  @Column()
  name: string

  @OneToMany((type) => User, (user) => user.userGroup)
  user: User
}
